<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_knob.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__knob_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_knob.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_knob.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_round_scale_draw.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_painter.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;qwt.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;qpainter.h&gt;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;qpalette.h&gt;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;qstyle.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;qstyleoption.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;qevent.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;qmargins.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;qmath.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">static</span> QSize qwtKnobSizeHint( <span class="keyword">const</span> <a class="code" href="class_qwt_knob.html">QwtKnob</a>* knob, <span class="keywordtype">int</span> min )</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordtype">int</span> knobWidth = knob-&gt;<a class="code" href="class_qwt_knob.html#a602b71c9be4861afdc50326b2f2a1b8b">knobWidth</a>();</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">if</span> ( knobWidth &lt;= 0 )</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        knobWidth = qMax( 3 * knob-&gt;<a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>(), min );</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="comment">// Add the scale radial thickness to the knobWidth</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> extent = qwtCeil( knob-&gt;<a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_round_scale_draw.html#a20e3ae2b75f28c8d015ad21ad61f8b49">extent</a>( knob-&gt;font() ) );</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> d = 2 * ( extent + 4 ) + knobWidth;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keyword">const</span> QMargins m = knob-&gt;contentsMargins();</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">return</span> QSize( d + m.left() + m.right(), d + m.top() + m.bottom() );</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;}</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">double</span> qwtToScaleAngle( <span class="keywordtype">double</span> angle )</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;{</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="comment">// the map is counter clockwise with the origin</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="comment">// at 90° using angles from -180° -&gt; 180°</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordtype">double</span> a = 90.0 - angle;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">if</span> ( a &lt;= -180.0 )</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        a += 360.0;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( a &gt;= 180.0 )</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        a -= 360.0;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">return</span> a;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;}</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">static</span> <span class="keywordtype">double</span> qwtToDegrees( <span class="keywordtype">double</span> value )</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;{</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">return</span> qwtNormalizeDegrees( 90.0 - value );</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">class </span>QwtKnob::PrivateData</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;{</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    PrivateData()</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        : <a class="code" href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">knobStyle</a>( <a class="code" href="class_qwt_knob.html">QwtKnob</a>::<a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea998504d08713af8a9af0d2cbe0aaf8df">Raised</a> )</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        , <a class="code" href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">markerStyle</a>( <a class="code" href="class_qwt_knob.html">QwtKnob</a>::<a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a9ea483f1087c1f6b1ac215b5f146c7c3">Notch</a> )</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        , <a class="code" href="class_qwt_knob.html#ae2ce4405be454679b299a157d32b4c5c">borderWidth</a>( 2 )</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        , borderDist( 4 )</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        , scaleDist( 4 )</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        , maxScaleTicks( 11 )</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        , <a class="code" href="class_qwt_knob.html#a602b71c9be4861afdc50326b2f2a1b8b">knobWidth</a>( 0 )</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        , <a class="code" href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">alignment</a>( Qt::AlignCenter )</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        , <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>( 8 )</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        , <a class="code" href="class_qwt_knob.html#ab763909f0a5dac48f80466b22fb3f952">totalAngle</a>( 270.0 )</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        , mouseOffset( 0.0 )</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208be">QwtKnob::KnobStyle</a> <a class="code" href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">knobStyle</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95">QwtKnob::MarkerStyle</a> <a class="code" href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">markerStyle</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#ae2ce4405be454679b299a157d32b4c5c">borderWidth</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">int</span> borderDist;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">int</span> scaleDist;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">int</span> maxScaleTicks;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#a602b71c9be4861afdc50326b2f2a1b8b">knobWidth</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    Qt::Alignment <a class="code" href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">alignment</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_knob.html#ab763909f0a5dac48f80466b22fb3f952">totalAngle</a>;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordtype">double</span> mouseOffset;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;};</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a767e89f3d4875da7d2074050572e0556">  103</a></span>&#160;<a class="code" href="class_qwt_knob.html#a767e89f3d4875da7d2074050572e0556">QwtKnob::QwtKnob</a>( QWidget* parent )</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    : <a class="code" href="class_qwt_abstract_slider.html">QwtAbstractSlider</a>( parent )</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;{</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <a class="code" href="class_qwt_knob.html#afea44f23da7f79a2b790178850c26edd">setScaleDraw</a>( <span class="keyword">new</span> <a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a>() );</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <a class="code" href="class_qwt_knob.html#a82c6a859d63833894a6e66f0fdbf8f05">setTotalAngle</a>( 270.0 );</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">setScale</a>( 0.0, 10.0 );</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="class_qwt_abstract_slider.html#a6c2021a39850832659b7ebd9ffd09e0e">setValue</a>( 0.0 );</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    setSizePolicy( QSizePolicy::MinimumExpanding,</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        QSizePolicy::MinimumExpanding );</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;}</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a13f3e622b333c9918bc61844029f8a70">  120</a></span>&#160;<a class="code" href="class_qwt_knob.html#a13f3e622b333c9918bc61844029f8a70">QwtKnob::~QwtKnob</a>()</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;{</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;}</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a3e69357a595407a73c23df7ad68bf117">  131</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#a3e69357a595407a73c23df7ad68bf117">QwtKnob::setKnobStyle</a>( <a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208be">KnobStyle</a> knobStyle )</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;{</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;knobStyle != <a class="code" href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">knobStyle</a> )</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    {</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;        m_data-&gt;knobStyle = <a class="code" href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">knobStyle</a>;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        update();</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;}</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">  144</a></span>&#160;<a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208be">QwtKnob::KnobStyle</a> <a class="code" href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">QwtKnob::knobStyle</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;knobStyle;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;}</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#aaa80356a3e3d3703070a6f2b1802646c">  155</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#aaa80356a3e3d3703070a6f2b1802646c">QwtKnob::setMarkerStyle</a>( <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95">MarkerStyle</a> markerStyle )</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;{</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;markerStyle != <a class="code" href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">markerStyle</a> )</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        m_data-&gt;markerStyle = <a class="code" href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">markerStyle</a>;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        update();</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    }</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;}</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">  168</a></span>&#160;<a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95">QwtKnob::MarkerStyle</a> <a class="code" href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">QwtKnob::markerStyle</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;markerStyle;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;}</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a82c6a859d63833894a6e66f0fdbf8f05">  185</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#a82c6a859d63833894a6e66f0fdbf8f05">QwtKnob::setTotalAngle</a> ( <span class="keywordtype">double</span> angle )</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;{</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    angle = qBound( 10.0, angle, 360.0 );</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordflow">if</span> ( angle != m_data-&gt;totalAngle )</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    {</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        m_data-&gt;totalAngle = angle;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_round_scale_draw.html#a5d85678fdb9fbb4d622425aab9ecc681">setAngleRange</a>( -0.5 * m_data-&gt;totalAngle,</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;            0.5 * m_data-&gt;totalAngle );</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        updateGeometry();</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        update();</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    }</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;}</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#ab763909f0a5dac48f80466b22fb3f952">  205</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_knob.html#ab763909f0a5dac48f80466b22fb3f952">QwtKnob::totalAngle</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;totalAngle;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;}</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a8d69c0c3bc110eaa68cfda26d31a8e98">  219</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#a8d69c0c3bc110eaa68cfda26d31a8e98">QwtKnob::setNumTurns</a>( <span class="keywordtype">int</span> numTurns )</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;{</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a> = qMax( <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a>, 1 );</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a> == 1 &amp;&amp; m_data-&gt;totalAngle &lt;= 360.0 )</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160; </div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> angle = <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a> * 360.0;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keywordflow">if</span> ( angle != m_data-&gt;totalAngle )</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    {</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        m_data-&gt;totalAngle = angle;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_round_scale_draw.html#a5d85678fdb9fbb4d622425aab9ecc681">setAngleRange</a>( -0.5 * m_data-&gt;totalAngle,</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            0.5 * m_data-&gt;totalAngle );</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160; </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        updateGeometry();</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        update();</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    }</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;}</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">  245</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">QwtKnob::numTurns</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">return</span> qwtCeil( m_data-&gt;totalAngle / 360.0 );</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;}</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#afea44f23da7f79a2b790178850c26edd">  259</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#afea44f23da7f79a2b790178850c26edd">QwtKnob::setScaleDraw</a>( <a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a>* scaleDraw )</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;{</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <a class="code" href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">setAbstractScaleDraw</a>( <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a> );</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <a class="code" href="class_qwt_knob.html#a82c6a859d63833894a6e66f0fdbf8f05">setTotalAngle</a>( m_data-&gt;totalAngle );</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    updateGeometry();</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    update();</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;}</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160; </div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">  272</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a>* <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">QwtKnob::scaleDraw</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span> <span class="keyword">const </span><a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a>* <span class="keyword">&gt;</span>( <a class="code" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">abstractScaleDraw</a>() );</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;}</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160; </div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a3154037eec8c76c24577b8bf1d92b871">  281</a></span>&#160;<a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a>* <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">QwtKnob::scaleDraw</a>()</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;{</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span> <a class="code" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a>* <span class="keyword">&gt;</span>( <a class="code" href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">abstractScaleDraw</a>() );</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;}</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">  292</a></span>&#160;QRect <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">QwtKnob::knobRect</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <span class="keyword">const</span> QRect cr = contentsRect();</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160; </div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> extent = qwtCeil( <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;extent( font() ) );</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> d = extent + m_data-&gt;scaleDist;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160; </div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordtype">int</span> w = m_data-&gt;knobWidth;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="keywordflow">if</span> ( w &lt;= 0 )</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    {</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">int</span> dim = qMin( cr.width(), cr.height() );</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        w = dim - 2 * ( d );</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        w = qMax( 0, w );</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    }</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160; </div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    QRect r( 0, 0, w, w );</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160; </div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;alignment &amp; Qt::AlignLeft )</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        r.moveLeft( cr.left() + d );</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    }</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( m_data-&gt;alignment &amp; Qt::AlignRight )</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    {</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        r.moveRight( cr.right() - d );</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    }</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    {</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        r.moveCenter( QPoint( cr.center().x(), r.center().y() ) );</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    }</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;alignment &amp; Qt::AlignTop )</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    {</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        r.moveTop( cr.top() + d );</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    }</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( m_data-&gt;alignment &amp; Qt::AlignBottom )</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    {</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;        r.moveBottom( cr.bottom() - d );</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;    }</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    {</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        r.moveCenter( QPoint( r.center().x(), cr.center().y() ) );</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    }</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160; </div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <span class="keywordflow">return</span> r;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;}</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; </div>
<div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a6be1b203644dc342c7368acb01f992ec">  347</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_knob.html#a6be1b203644dc342c7368acb01f992ec">QwtKnob::isScrollPosition</a>( <span class="keyword">const</span> QPoint&amp; pos )<span class="keyword"> const</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;    <span class="keyword">const</span> QRect kr = <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>();</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160; </div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keyword">const</span> QRegion region( kr, QRegion::Ellipse );</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">if</span> ( region.contains( pos ) &amp;&amp; ( pos != kr.center() ) )</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> angle = QLineF( kr.center(), pos ).angle();</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> valueAngle = qwtToDegrees( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_abstract_scale.html#a6fac557f38c8121b97fda514cf91bcbf">transform</a>( <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() ) );</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        m_data-&gt;mouseOffset = qwtNormalizeDegrees( angle - valueAngle );</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160; </div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    }</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;}</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; </div>
<div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a024c43446e301a631eeb86e5b832bb5c">  373</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_knob.html#a024c43446e301a631eeb86e5b832bb5c">QwtKnob::scrolledTo</a>( <span class="keyword">const</span> QPoint&amp; pos )<span class="keyword"> const</span></div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordtype">double</span> angle = QLineF( rect().center(), pos ).angle();</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    angle = qwtNormalizeDegrees( angle - m_data-&gt;mouseOffset );</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160; </div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().pDist() &gt; 360.0 )</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    {</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        angle = qwtToDegrees( angle );</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160; </div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">double</span> v = <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() );</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a> = qwtFloor( ( v - <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().p1() ) / 360.0 );</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        <span class="keywordtype">double</span> valueAngle = qwtNormalizeDegrees( v );</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        <span class="keywordflow">if</span> ( qAbs( valueAngle - angle ) &gt; 180.0 )</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;        {</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;            <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a> += ( angle &gt; valueAngle ) ? -1 : 1;</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;        }</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160; </div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;        angle += <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a>() + <a class="code" href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">numTurns</a> * 360.0;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160; </div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        <span class="keywordflow">if</span> ( !<a class="code" href="class_qwt_abstract_slider.html#a6ef14b5e9a2f094d06dc9d8a7f86ca4e">wrapping</a>() )</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        {</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> boundedAngle =</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;                qBound( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().p1(), angle, <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().p2() );</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160; </div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;            m_data-&gt;mouseOffset += ( boundedAngle - angle );</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            angle = boundedAngle;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        }</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;    }</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    {</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        angle = qwtToScaleAngle( angle );</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160; </div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        <span class="keywordtype">double</span> boundedAngle = qBound( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().p1(), angle, <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().p2() );</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        <span class="keywordflow">if</span> ( !<a class="code" href="class_qwt_abstract_slider.html#a6ef14b5e9a2f094d06dc9d8a7f86ca4e">wrapping</a>() )</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        {</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> currentAngle = <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() );</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160; </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            <span class="keywordflow">if</span> ( ( currentAngle &gt; 90.0 ) &amp;&amp; ( boundedAngle &lt; -90.0 ) )</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                boundedAngle = <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">p2</a>();</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( ( currentAngle &lt; -90.0 ) &amp;&amp; ( boundedAngle &gt; 90.0 ) )</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;                boundedAngle = <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">p1</a>();</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160; </div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;            m_data-&gt;mouseOffset += ( boundedAngle - angle );</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;        }</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160; </div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        angle = boundedAngle;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    }</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160; </div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">invTransform</a>( angle );</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;}</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160; </div>
<div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#aa9da0adea40d576b8a1165888e35e275">  431</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#aa9da0adea40d576b8a1165888e35e275">QwtKnob::changeEvent</a>( QEvent* event )</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;{</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    <span class="keywordflow">switch</span>( event-&gt;type() )</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    {</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <span class="keywordflow">case</span> QEvent::StyleChange:</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        <span class="keywordflow">case</span> QEvent::FontChange:</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        {</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;            updateGeometry();</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;            update();</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        }</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    }</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;}</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160; </div>
<div class="line"><a name="l00451"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#ac0cb072d3f536b1e286d26dea5fc112f">  451</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#ac0cb072d3f536b1e286d26dea5fc112f">QwtKnob::paintEvent</a>( QPaintEvent* event )</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;{</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keyword">const</span> QRectF <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a> = this-&gt;<a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>();</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160; </div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    QPainter painter( <span class="keyword">this</span> );</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;    painter.setClipRegion( event-&gt;region() );</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160; </div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    QStyleOption opt;</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;    opt.initFrom(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    style()-&gt;drawPrimitive(QStyle::PE_Widget, &amp;opt, &amp;painter, <span class="keyword">this</span>);</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160; </div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;    painter.setRenderHint( QPainter::Antialiasing, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160; </div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <span class="keywordflow">if</span> ( !<a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.contains( event-&gt;region().boundingRect() ) )</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    {</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_round_scale_draw.html#a219e0db15594f297ae6ff769fd6c0485">setRadius</a>( 0.5 * <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.width() + m_data-&gt;scaleDist );</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_round_scale_draw.html#af7e08b85826c5e1e5b1762fa07830107">moveCenter</a>( <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center() );</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160; </div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;<a class="code" href="class_qwt_abstract_scale_draw.html#ac4442d7480db1288971e7eac15142467">draw</a>( &amp;painter, palette() );</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    }</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    <a class="code" href="class_qwt_knob.html#ad1786e12c8c188354ef20592ddac042c">drawKnob</a>( &amp;painter, <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a> );</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160; </div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <a class="code" href="class_qwt_knob.html#acc2193cc924485939a54bd2b514290e4">drawMarker</a>( &amp;painter, <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>,</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;        qwtNormalizeDegrees( <a class="code" href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">scaleMap</a>().<a class="code" href="class_qwt_abstract_scale.html#a6fac557f38c8121b97fda514cf91bcbf">transform</a>( <a class="code" href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">value</a>() ) ) );</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160; </div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    painter.setRenderHint( QPainter::Antialiasing, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160; </div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    <span class="keywordflow">if</span> ( hasFocus() )</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        <a class="code" href="class_qwt_knob.html#a8b6f76aefe0409e92191b71ceb32c416">drawFocusIndicator</a>( &amp;painter );</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;}</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160; </div>
<div class="line"><a name="l00489"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#ad1786e12c8c188354ef20592ddac042c">  489</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#ad1786e12c8c188354ef20592ddac042c">QwtKnob::drawKnob</a>( QPainter* painter, <span class="keyword">const</span> QRectF&amp; knobRect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    <span class="keywordtype">double</span> dim = qMin( <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.width(), <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.height() );</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;    dim -= m_data-&gt;borderWidth * 0.5;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160; </div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    QRectF aRect( 0, 0, dim, dim );</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    aRect.moveCenter( <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center() );</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160; </div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    QPen pen( Qt::NoPen );</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;borderWidth &gt; 0 )</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    {</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;        QColor c1 = palette().color( QPalette::Light );</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;        QColor c2 = palette().color( QPalette::Dark );</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160; </div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;        QLinearGradient gradient( aRect.topLeft(), aRect.bottomRight() );</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        gradient.setColorAt( 0.0, c1 );</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        gradient.setColorAt( 0.3, c1 );</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;        gradient.setColorAt( 0.7, c2 );</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;        gradient.setColorAt( 1.0, c2 );</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160; </div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;        pen = QPen( gradient, m_data-&gt;borderWidth );</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    }</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160; </div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;    QBrush brush;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    <span class="keywordflow">switch</span>( m_data-&gt;knobStyle )</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    {</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea998504d08713af8a9af0d2cbe0aaf8df">QwtKnob::Raised</a>:</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;        {</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;            <span class="keywordtype">double</span> off = 0.3 * <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.width();</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;            QRadialGradient gradient( <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center(),</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;                <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.width(), <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.topLeft() + QPointF( off, off ) );</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160; </div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;            gradient.setColorAt( 0.0, palette().color( QPalette::Midlight ) );</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;            gradient.setColorAt( 1.0, palette().color( QPalette::Button ) );</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160; </div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;            brush = QBrush( gradient );</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160; </div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;        }</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208beaff19cfc4c98c17198e25d519c45d65ea">QwtKnob::Styled</a>:</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        {</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;            QRadialGradient gradient(<a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center().x() - <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.width() / 3,</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;                <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center().y() - <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.height() / 2,</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;                <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.width() * 1.3,</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;                <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center().x(),</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;                <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.center().y() - <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.height() / 2);</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160; </div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;            <span class="keyword">const</span> QColor c = palette().color( QPalette::Button );</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;            gradient.setColorAt(0, c.lighter(110) );</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;            gradient.setColorAt( 0.5, c);</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;            gradient.setColorAt( 0.501, c.darker(102) );</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;            gradient.setColorAt(1, c.darker(115) );</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160; </div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;            brush = QBrush( gradient );</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160; </div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;        }</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea599810d6e366e66eaa7f662f1424e7ed">QwtKnob::Sunken</a>:</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;        {</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;            QLinearGradient gradient(</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;                <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.topLeft(), <a class="code" href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">knobRect</a>.bottomRight() );</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;            gradient.setColorAt( 0.0, palette().color( QPalette::Mid ) );</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;            gradient.setColorAt( 0.5, palette().color( QPalette::Button ) );</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;            gradient.setColorAt( 1.0, palette().color( QPalette::Midlight ) );</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            brush = QBrush( gradient );</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160; </div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;        }</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea1dea5fdd408692d0efacc3edf8ca9454">QwtKnob::Flat</a>:</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;            brush = palette().brush( QPalette::Button );</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;    }</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160; </div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    painter-&gt;setPen( pen );</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    painter-&gt;setBrush( brush );</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;    painter-&gt;drawEllipse( aRect );</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;}</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160; </div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160; </div>
<div class="line"><a name="l00576"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#acc2193cc924485939a54bd2b514290e4">  576</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#acc2193cc924485939a54bd2b514290e4">QwtKnob::drawMarker</a>( QPainter* painter,</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    <span class="keyword">const</span> QRectF&amp; rect, <span class="keywordtype">double</span> angle )<span class="keyword"> const</span></div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;markerStyle == <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95af12a242c58b244547abb48ef284246f6">NoMarker</a> || !<a class="code" href="class_qwt_abstract_slider.html#a9fb9fae0f664460bb487a12541b38d56">isValid</a>() )</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160; </div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> radians = qwtRadians( angle );</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> sinA = -qFastSin( radians );</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> cosA = qFastCos( radians );</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160; </div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> xm = rect.center().x();</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> ym = rect.center().y();</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> margin = 4.0;</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160; </div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;    <span class="keywordtype">double</span> radius = 0.5 * ( rect.width() - m_data-&gt;borderWidth ) - margin;</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;    <span class="keywordflow">if</span> ( radius &lt; 1.0 )</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;        radius = 1.0;</div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160; </div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a> = m_data-&gt;markerSize;</div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a> &lt;= 0 )</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;        <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a> = qRound( 0.4 * radius );</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160; </div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    <span class="keywordflow">switch</span> ( m_data-&gt;markerStyle )</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    {</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a9ea483f1087c1f6b1ac215b5f146c7c3">Notch</a>:</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a1bf9be6c73beec7768d62f101d81a851">Nub</a>:</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;        {</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> dotWidth = qwtMinF( <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>, radius );</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160; </div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> dotCenterDist = radius - 0.5 * dotWidth;</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;            <span class="keywordflow">if</span> ( dotCenterDist &gt; 0.0 )</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;            {</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;                <span class="keyword">const</span> QPointF center( xm - sinA * dotCenterDist,</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;                    ym - cosA * dotCenterDist );</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160; </div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;                QRectF ellipse( 0.0, 0.0, dotWidth, dotWidth );</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;                ellipse.moveCenter( center );</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160; </div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160;                QColor c1 = palette().color( QPalette::Light );</div>
<div class="line"><a name="l00615"></a><span class="lineno">  615</span>&#160;                QColor c2 = palette().color( QPalette::Mid );</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160; </div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;                <span class="keywordflow">if</span> ( m_data-&gt;markerStyle == <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a9ea483f1087c1f6b1ac215b5f146c7c3">Notch</a> )</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;                    qSwap( c1, c2 );</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160; </div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;                QLinearGradient gradient(</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;                    ellipse.topLeft(), ellipse.bottomRight() );</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;                gradient.setColorAt( 0.0, c1 );</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;                gradient.setColorAt( 1.0, c2 );</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160; </div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;                painter-&gt;setPen( Qt::NoPen );</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;                painter-&gt;setBrush( gradient );</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160; </div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;                painter-&gt;drawEllipse( ellipse );</div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;            }</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;        }</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a298324d95eafb4e99717a35b81b0b704">Dot</a>:</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;        {</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> dotWidth = qwtMinF( <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>, radius);</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160; </div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> dotCenterDist = radius - 0.5 * dotWidth;</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;            <span class="keywordflow">if</span> ( dotCenterDist &gt; 0.0 )</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;            {</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;                <span class="keyword">const</span> QPointF center( xm - sinA * dotCenterDist,</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;                    ym - cosA * dotCenterDist );</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160; </div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;                QRectF ellipse( 0.0, 0.0, dotWidth, dotWidth );</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;                ellipse.moveCenter( center );</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160; </div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;                painter-&gt;setPen( Qt::NoPen );</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;                painter-&gt;setBrush( palette().color( QPalette::ButtonText ) );</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;                painter-&gt;drawEllipse( ellipse );</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;            }</div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160; </div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;        }</div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a5ccaa93ece2f928a1167b423339826d9">Tick</a>:</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160;        {</div>
<div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> rb = qwtMaxF( radius - <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>, 1.0 );</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> re = radius;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160; </div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;            <span class="keyword">const</span> QLineF line( xm - sinA * rb, ym - cosA * rb,</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;                xm - sinA * re, ym - cosA * re );</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160; </div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;            QPen pen( palette().color( QPalette::ButtonText ), 0 );</div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;            pen.setCapStyle( Qt::FlatCap );</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;            painter-&gt;setPen( pen );</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;            painter-&gt;drawLine ( line );</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160; </div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;        }</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a69258df5bb213fe4f7da5362470d8f85">Triangle</a>:</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        {</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> rb = qwtMaxF( radius - <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">markerSize</a>, 1.0 );</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> re = radius;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160; </div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;            painter-&gt;translate( rect.center() );</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;            painter-&gt;rotate( angle - 90.0 );</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160; </div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;            QPolygonF polygon;</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;            polygon += QPointF( re, 0.0 );</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;            polygon += QPointF( rb, 0.5 * ( re - rb ) );</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;            polygon += QPointF( rb, -0.5 * ( re - rb ) );</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160; </div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;            painter-&gt;setPen( Qt::NoPen );</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;            painter-&gt;setBrush( palette().color( QPalette::ButtonText ) );</div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;            painter-&gt;drawPolygon( polygon );</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160; </div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;            painter-&gt;resetTransform();</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160; </div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;        }</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;    }</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;}</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160; </div>
<div class="line"><a name="l00697"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a8b6f76aefe0409e92191b71ceb32c416">  697</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#a8b6f76aefe0409e92191b71ceb32c416">QwtKnob::drawFocusIndicator</a>( QPainter* painter )<span class="keyword"> const</span></div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;    <span class="keyword">const</span> QRect cr = contentsRect();</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160; </div>
<div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;    <span class="keywordtype">int</span> w = m_data-&gt;knobWidth;</div>
<div class="line"><a name="l00702"></a><span class="lineno">  702</span>&#160;    <span class="keywordflow">if</span> ( w &lt;= 0 )</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;    {</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;        w = qMin( cr.width(), cr.height() );</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;    }</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;    {</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">int</span> extent = qCeil( <a class="code" href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">scaleDraw</a>()-&gt;extent( font() ) );</div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;        w += 2 * ( extent + m_data-&gt;scaleDist );</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;    }</div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160; </div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;    QRect focusRect( 0, 0, w, w );</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;    focusRect.moveCenter( cr.center() );</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160; </div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;    <a class="code" href="class_qwt_painter.html#aad72e955692b37a06547a6c0d62817b0">QwtPainter::drawFocusRect</a>( painter, <span class="keyword">this</span>, focusRect );</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;}</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160; </div>
<div class="line"><a name="l00730"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#ab84683292e11b7c3de4855d844b5471c">  730</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#ab84683292e11b7c3de4855d844b5471c">QwtKnob::setAlignment</a>( Qt::Alignment alignment )</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;{</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;alignment != <a class="code" href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">alignment</a> )</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    {</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;        m_data-&gt;alignment = <a class="code" href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">alignment</a>;</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;        update();</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;    }</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;}</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160; </div>
<div class="line"><a name="l00743"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">  743</a></span>&#160;Qt::Alignment <a class="code" href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">QwtKnob::alignment</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;alignment;</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;}</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160; </div>
<div class="line"><a name="l00759"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a3c5fd9348d4fc0ffd39eb4d98daca831">  759</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#a3c5fd9348d4fc0ffd39eb4d98daca831">QwtKnob::setKnobWidth</a>( <span class="keywordtype">int</span> width )</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;{</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;    width = qMax( width, 0 );</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160; </div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;    <span class="keywordflow">if</span> ( width != m_data-&gt;knobWidth )</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;    {</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;        QSizePolicy::Policy policy;</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;        <span class="keywordflow">if</span> ( width &gt; 0 )</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;            policy = QSizePolicy::Minimum;</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;            policy = QSizePolicy::MinimumExpanding;</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160; </div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;        setSizePolicy( policy, policy );</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160; </div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;        m_data-&gt;knobWidth = width;</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160; </div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;        updateGeometry();</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;        update();</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    }</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;}</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160; </div>
<div class="line"><a name="l00781"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a602b71c9be4861afdc50326b2f2a1b8b">  781</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#a602b71c9be4861afdc50326b2f2a1b8b">QwtKnob::knobWidth</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;knobWidth;</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;}</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160; </div>
<div class="line"><a name="l00790"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#aed67501daa4221542249013cdef82bae">  790</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#aed67501daa4221542249013cdef82bae">QwtKnob::setBorderWidth</a>( <span class="keywordtype">int</span> borderWidth )</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;{</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;    m_data-&gt;borderWidth = qMax( <a class="code" href="class_qwt_knob.html#ae2ce4405be454679b299a157d32b4c5c">borderWidth</a>, 0 );</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160; </div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;    updateGeometry();</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;    update();</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;}</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160; </div>
<div class="line"><a name="l00799"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#ae2ce4405be454679b299a157d32b4c5c">  799</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#ae2ce4405be454679b299a157d32b4c5c">QwtKnob::borderWidth</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;borderWidth;</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;}</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160; </div>
<div class="line"><a name="l00812"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#a88e06ffddd31d3c0df04771793173353">  812</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_knob.html#a88e06ffddd31d3c0df04771793173353">QwtKnob::setMarkerSize</a>( <span class="keywordtype">int</span> size )</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;{</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;markerSize != size )</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;    {</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;        m_data-&gt;markerSize = size;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;        update();</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    }</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;}</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160; </div>
<div class="line"><a name="l00825"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">  825</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">QwtKnob::markerSize</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;markerSize;</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;}</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160; </div>
<div class="line"><a name="l00833"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#afd8b3af4e053e9973bf3ae39d5196c20">  833</a></span>&#160;QSize <a class="code" href="class_qwt_knob.html#afd8b3af4e053e9973bf3ae39d5196c20">QwtKnob::sizeHint</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;    <span class="keyword">const</span> QSize hint = qwtKnobSizeHint( <span class="keyword">this</span>, 50 );</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;    <span class="keywordflow">return</span> qwtExpandedToGlobalStrut( hint );</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;}</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160; </div>
<div class="line"><a name="l00843"></a><span class="lineno"><a class="line" href="class_qwt_knob.html#aeb15fa74ec1b1207bea1c5ab1cbf3b4a">  843</a></span>&#160;QSize <a class="code" href="class_qwt_knob.html#aeb15fa74ec1b1207bea1c5ab1cbf3b4a">QwtKnob::minimumSizeHint</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;    <span class="keywordflow">return</span> qwtKnobSizeHint( <span class="keyword">this</span>, 20 );</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;}</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160; </div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;<span class="preprocessor">#if QWT_MOC_INCLUDE</span></div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;<span class="preprocessor">#include &quot;moc_qwt_knob.cpp&quot;</span></div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclass_qwt_abstract_scale_draw_html_ac4442d7480db1288971e7eac15142467"><div class="ttname"><a href="class_qwt_abstract_scale_draw.html#ac4442d7480db1288971e7eac15142467">QwtAbstractScaleDraw::draw</a></div><div class="ttdeci">virtual void draw(QPainter *, const QPalette &amp;) const</div><div class="ttdoc">Draw the scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale__draw_8cpp_source.html#l00169">qwt_abstract_scale_draw.cpp:169</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a116c7877f4d9fc3620ffa713b5bbdb96"><div class="ttname"><a href="class_qwt_abstract_scale.html#a116c7877f4d9fc3620ffa713b5bbdb96">QwtAbstractScale::scaleMap</a></div><div class="ttdeci">const QwtScaleMap &amp; scaleMap() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00357">qwt_abstract_scale.cpp:357</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a473e84e72bd52afac58c04d004b5c06a"><div class="ttname"><a href="class_qwt_abstract_scale.html#a473e84e72bd52afac58c04d004b5c06a">QwtAbstractScale::abstractScaleDraw</a></div><div class="ttdeci">const QwtAbstractScaleDraw * abstractScaleDraw() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00302">qwt_abstract_scale.cpp:302</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a6fac557f38c8121b97fda514cf91bcbf"><div class="ttname"><a href="class_qwt_abstract_scale.html#a6fac557f38c8121b97fda514cf91bcbf">QwtAbstractScale::transform</a></div><div class="ttdeci">int transform(double) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00369">qwt_abstract_scale.cpp:369</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_a950c5bf521dc704b78f76c7951346288"><div class="ttname"><a href="class_qwt_abstract_scale.html#a950c5bf521dc704b78f76c7951346288">QwtAbstractScale::setAbstractScaleDraw</a></div><div class="ttdeci">void setAbstractScaleDraw(QwtAbstractScaleDraw *)</div><div class="ttdoc">Set a scale draw.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00277">qwt_abstract_scale.cpp:277</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_scale_html_ae9640e814b5029d7dd79cb3ba752102b"><div class="ttname"><a href="class_qwt_abstract_scale.html#ae9640e814b5029d7dd79cb3ba752102b">QwtAbstractScale::setScale</a></div><div class="ttdeci">void setScale(double lowerBound, double upperBound)</div><div class="ttdoc">Specify a scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__scale_8cpp_source.html#l00130">qwt_abstract_scale.cpp:130</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html"><div class="ttname"><a href="class_qwt_abstract_slider.html">QwtAbstractSlider</a></div><div class="ttdoc">An abstract base class for slider widgets with a scale.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8h_source.html#l00032">qwt_abstract_slider.h:33</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a6c2021a39850832659b7ebd9ffd09e0e"><div class="ttname"><a href="class_qwt_abstract_slider.html#a6c2021a39850832659b7ebd9ffd09e0e">QwtAbstractSlider::setValue</a></div><div class="ttdeci">void setValue(double value)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00570">qwt_abstract_slider.cpp:570</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a6ef14b5e9a2f094d06dc9d8a7f86ca4e"><div class="ttname"><a href="class_qwt_abstract_slider.html#a6ef14b5e9a2f094d06dc9d8a7f86ca4e">QwtAbstractSlider::wrapping</a></div><div class="ttdeci">bool wrapping() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00608">qwt_abstract_slider.cpp:608</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_a9fb9fae0f664460bb487a12541b38d56"><div class="ttname"><a href="class_qwt_abstract_slider.html#a9fb9fae0f664460bb487a12541b38d56">QwtAbstractSlider::isValid</a></div><div class="ttdeci">bool isValid() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00125">qwt_abstract_slider.cpp:125</a></div></div>
<div class="ttc" id="aclass_qwt_abstract_slider_html_ad9b7a559149f597a060a9b48aed67715"><div class="ttname"><a href="class_qwt_abstract_slider.html#ad9b7a559149f597a060a9b48aed67715">QwtAbstractSlider::value</a></div><div class="ttdeci">double value() const</div><div class="ttdoc">Returns the current value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__slider_8cpp_source.html#l00587">qwt_abstract_slider.cpp:587</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html"><div class="ttname"><a href="class_qwt_knob.html">QwtKnob</a></div><div class="ttdoc">The Knob Widget.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00042">qwt_knob.h:43</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a024c43446e301a631eeb86e5b832bb5c"><div class="ttname"><a href="class_qwt_knob.html#a024c43446e301a631eeb86e5b832bb5c">QwtKnob::scrolledTo</a></div><div class="ttdeci">virtual double scrolledTo(const QPoint &amp;) const override</div><div class="ttdoc">Determine the value for a new position of the mouse.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00373">qwt_knob.cpp:373</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a13f3e622b333c9918bc61844029f8a70"><div class="ttname"><a href="class_qwt_knob.html#a13f3e622b333c9918bc61844029f8a70">QwtKnob::~QwtKnob</a></div><div class="ttdeci">virtual ~QwtKnob()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00120">qwt_knob.cpp:120</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a3c5fd9348d4fc0ffd39eb4d98daca831"><div class="ttname"><a href="class_qwt_knob.html#a3c5fd9348d4fc0ffd39eb4d98daca831">QwtKnob::setKnobWidth</a></div><div class="ttdeci">void setKnobWidth(int)</div><div class="ttdoc">Change the knob's width.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00759">qwt_knob.cpp:759</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a3e69357a595407a73c23df7ad68bf117"><div class="ttname"><a href="class_qwt_knob.html#a3e69357a595407a73c23df7ad68bf117">QwtKnob::setKnobStyle</a></div><div class="ttdeci">void setKnobStyle(KnobStyle)</div><div class="ttdoc">Set the knob type.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00131">qwt_knob.cpp:131</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a602b71c9be4861afdc50326b2f2a1b8b"><div class="ttname"><a href="class_qwt_knob.html#a602b71c9be4861afdc50326b2f2a1b8b">QwtKnob::knobWidth</a></div><div class="ttdeci">int knobWidth() const</div><div class="ttdoc">Return the width of the knob.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00781">qwt_knob.cpp:781</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a68a1d38442d36cd75fa6fb7b6d6249b1"><div class="ttname"><a href="class_qwt_knob.html#a68a1d38442d36cd75fa6fb7b6d6249b1">QwtKnob::alignment</a></div><div class="ttdeci">Qt::Alignment alignment() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00743">qwt_knob.cpp:743</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a6be1b203644dc342c7368acb01f992ec"><div class="ttname"><a href="class_qwt_knob.html#a6be1b203644dc342c7368acb01f992ec">QwtKnob::isScrollPosition</a></div><div class="ttdeci">virtual bool isScrollPosition(const QPoint &amp;) const override</div><div class="ttdoc">Determine what to do when the user presses a mouse button.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00347">qwt_knob.cpp:347</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95">QwtKnob::MarkerStyle</a></div><div class="ttdeci">MarkerStyle</div><div class="ttdoc">Marker type.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00095">qwt_knob.h:96</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95a1bf9be6c73beec7768d62f101d81a851"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a1bf9be6c73beec7768d62f101d81a851">QwtKnob::Nub</a></div><div class="ttdeci">@ Nub</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00113">qwt_knob.h:113</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95a298324d95eafb4e99717a35b81b0b704"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a298324d95eafb4e99717a35b81b0b704">QwtKnob::Dot</a></div><div class="ttdeci">@ Dot</div><div class="ttdoc">Paint a circle in QPalette::ButtonText color.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00107">qwt_knob.h:107</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95a5ccaa93ece2f928a1167b423339826d9"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a5ccaa93ece2f928a1167b423339826d9">QwtKnob::Tick</a></div><div class="ttdeci">@ Tick</div><div class="ttdoc">Paint a single tick in QPalette::ButtonText color.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00101">qwt_knob.h:101</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95a69258df5bb213fe4f7da5362470d8f85"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a69258df5bb213fe4f7da5362470d8f85">QwtKnob::Triangle</a></div><div class="ttdeci">@ Triangle</div><div class="ttdoc">Paint a triangle in QPalette::ButtonText color.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00104">qwt_knob.h:104</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95a9ea483f1087c1f6b1ac215b5f146c7c3"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95a9ea483f1087c1f6b1ac215b5f146c7c3">QwtKnob::Notch</a></div><div class="ttdeci">@ Notch</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00120">qwt_knob.h:119</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a7254d94e76a74228637931fb75939b95af12a242c58b244547abb48ef284246f6"><div class="ttname"><a href="class_qwt_knob.html#a7254d94e76a74228637931fb75939b95af12a242c58b244547abb48ef284246f6">QwtKnob::NoMarker</a></div><div class="ttdeci">@ NoMarker</div><div class="ttdoc">Don't paint any marker.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00098">qwt_knob.h:98</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a75e38a6c20b85455630d72f9586355e3"><div class="ttname"><a href="class_qwt_knob.html#a75e38a6c20b85455630d72f9586355e3">QwtKnob::scaleDraw</a></div><div class="ttdeci">const QwtRoundScaleDraw * scaleDraw() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00272">qwt_knob.cpp:272</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a767e89f3d4875da7d2074050572e0556"><div class="ttname"><a href="class_qwt_knob.html#a767e89f3d4875da7d2074050572e0556">QwtKnob::QwtKnob</a></div><div class="ttdeci">QwtKnob(QWidget *parent=NULL)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00103">qwt_knob.cpp:103</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a82c6a859d63833894a6e66f0fdbf8f05"><div class="ttname"><a href="class_qwt_knob.html#a82c6a859d63833894a6e66f0fdbf8f05">QwtKnob::setTotalAngle</a></div><div class="ttdeci">void setTotalAngle(double angle)</div><div class="ttdoc">Set the total angle by which the knob can be turned.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00185">qwt_knob.cpp:185</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a88e06ffddd31d3c0df04771793173353"><div class="ttname"><a href="class_qwt_knob.html#a88e06ffddd31d3c0df04771793173353">QwtKnob::setMarkerSize</a></div><div class="ttdeci">void setMarkerSize(int)</div><div class="ttdoc">Set the size of the marker.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00812">qwt_knob.cpp:812</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a8b6f76aefe0409e92191b71ceb32c416"><div class="ttname"><a href="class_qwt_knob.html#a8b6f76aefe0409e92191b71ceb32c416">QwtKnob::drawFocusIndicator</a></div><div class="ttdeci">virtual void drawFocusIndicator(QPainter *) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00697">qwt_knob.cpp:697</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a8d69c0c3bc110eaa68cfda26d31a8e98"><div class="ttname"><a href="class_qwt_knob.html#a8d69c0c3bc110eaa68cfda26d31a8e98">QwtKnob::setNumTurns</a></div><div class="ttdeci">void setNumTurns(int)</div><div class="ttdoc">Set the number of turns.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00219">qwt_knob.cpp:219</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a90d27d28457be737c0b4e8913ad92a5c"><div class="ttname"><a href="class_qwt_knob.html#a90d27d28457be737c0b4e8913ad92a5c">QwtKnob::markerStyle</a></div><div class="ttdeci">MarkerStyle markerStyle() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00168">qwt_knob.cpp:168</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_a92a018fb577c278050a468c166e098ce"><div class="ttname"><a href="class_qwt_knob.html#a92a018fb577c278050a468c166e098ce">QwtKnob::knobRect</a></div><div class="ttdeci">QRect knobRect() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00292">qwt_knob.cpp:292</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_aa2f1cabf33c99418b714c27b4309c5fe"><div class="ttname"><a href="class_qwt_knob.html#aa2f1cabf33c99418b714c27b4309c5fe">QwtKnob::markerSize</a></div><div class="ttdeci">int markerSize() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00825">qwt_knob.cpp:825</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_aa9da0adea40d576b8a1165888e35e275"><div class="ttname"><a href="class_qwt_knob.html#aa9da0adea40d576b8a1165888e35e275">QwtKnob::changeEvent</a></div><div class="ttdeci">virtual void changeEvent(QEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00431">qwt_knob.cpp:431</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_aaa80356a3e3d3703070a6f2b1802646c"><div class="ttname"><a href="class_qwt_knob.html#aaa80356a3e3d3703070a6f2b1802646c">QwtKnob::setMarkerStyle</a></div><div class="ttdeci">void setMarkerStyle(MarkerStyle)</div><div class="ttdoc">Set the marker type of the knob.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00155">qwt_knob.cpp:155</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_aacbe6dd0b03e522476880a8e94f09393"><div class="ttname"><a href="class_qwt_knob.html#aacbe6dd0b03e522476880a8e94f09393">QwtKnob::knobStyle</a></div><div class="ttdeci">KnobStyle knobStyle() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00144">qwt_knob.cpp:144</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_ab763909f0a5dac48f80466b22fb3f952"><div class="ttname"><a href="class_qwt_knob.html#ab763909f0a5dac48f80466b22fb3f952">QwtKnob::totalAngle</a></div><div class="ttdeci">double totalAngle() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00205">qwt_knob.cpp:205</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_ab84683292e11b7c3de4855d844b5471c"><div class="ttname"><a href="class_qwt_knob.html#ab84683292e11b7c3de4855d844b5471c">QwtKnob::setAlignment</a></div><div class="ttdeci">void setAlignment(Qt::Alignment)</div><div class="ttdoc">Set the alignment of the knob.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00730">qwt_knob.cpp:730</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_ac0cb072d3f536b1e286d26dea5fc112f"><div class="ttname"><a href="class_qwt_knob.html#ac0cb072d3f536b1e286d26dea5fc112f">QwtKnob::paintEvent</a></div><div class="ttdeci">virtual void paintEvent(QPaintEvent *) override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00451">qwt_knob.cpp:451</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_acc2193cc924485939a54bd2b514290e4"><div class="ttname"><a href="class_qwt_knob.html#acc2193cc924485939a54bd2b514290e4">QwtKnob::drawMarker</a></div><div class="ttdeci">virtual void drawMarker(QPainter *, const QRectF &amp;, double angle) const</div><div class="ttdoc">Draw the marker at the knob's front.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00576">qwt_knob.cpp:576</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_ad1786e12c8c188354ef20592ddac042c"><div class="ttname"><a href="class_qwt_knob.html#ad1786e12c8c188354ef20592ddac042c">QwtKnob::drawKnob</a></div><div class="ttdeci">virtual void drawKnob(QPainter *, const QRectF &amp;) const</div><div class="ttdoc">Draw the knob.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00489">qwt_knob.cpp:489</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_addd00357b45752377aec83a3ab7208be"><div class="ttname"><a href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208be">QwtKnob::KnobStyle</a></div><div class="ttdeci">KnobStyle</div><div class="ttdoc">Style of the knob surface.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00066">qwt_knob.h:67</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_addd00357b45752377aec83a3ab7208bea1dea5fdd408692d0efacc3edf8ca9454"><div class="ttname"><a href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea1dea5fdd408692d0efacc3edf8ca9454">QwtKnob::Flat</a></div><div class="ttdeci">@ Flat</div><div class="ttdoc">Fill the knob with a brush from QPalette::Button.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00069">qwt_knob.h:69</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_addd00357b45752377aec83a3ab7208bea599810d6e366e66eaa7f662f1424e7ed"><div class="ttname"><a href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea599810d6e366e66eaa7f662f1424e7ed">QwtKnob::Sunken</a></div><div class="ttdeci">@ Sunken</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00078">qwt_knob.h:78</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_addd00357b45752377aec83a3ab7208bea998504d08713af8a9af0d2cbe0aaf8df"><div class="ttname"><a href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208bea998504d08713af8a9af0d2cbe0aaf8df">QwtKnob::Raised</a></div><div class="ttdeci">@ Raised</div><div class="ttdoc">Build a gradient from QPalette::Midlight and QPalette::Button.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00072">qwt_knob.h:72</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_addd00357b45752377aec83a3ab7208beaff19cfc4c98c17198e25d519c45d65ea"><div class="ttname"><a href="class_qwt_knob.html#addd00357b45752377aec83a3ab7208beaff19cfc4c98c17198e25d519c45d65ea">QwtKnob::Styled</a></div><div class="ttdeci">@ Styled</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8h_source.html#l00085">qwt_knob.h:84</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_addd1efaa458d378b07d2ce1699930595"><div class="ttname"><a href="class_qwt_knob.html#addd1efaa458d378b07d2ce1699930595">QwtKnob::numTurns</a></div><div class="ttdeci">int numTurns() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00245">qwt_knob.cpp:245</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_ae2ce4405be454679b299a157d32b4c5c"><div class="ttname"><a href="class_qwt_knob.html#ae2ce4405be454679b299a157d32b4c5c">QwtKnob::borderWidth</a></div><div class="ttdeci">int borderWidth() const</div><div class="ttdoc">Return the border width.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00799">qwt_knob.cpp:799</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_aeb15fa74ec1b1207bea1c5ab1cbf3b4a"><div class="ttname"><a href="class_qwt_knob.html#aeb15fa74ec1b1207bea1c5ab1cbf3b4a">QwtKnob::minimumSizeHint</a></div><div class="ttdeci">virtual QSize minimumSizeHint() const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00843">qwt_knob.cpp:843</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_aed67501daa4221542249013cdef82bae"><div class="ttname"><a href="class_qwt_knob.html#aed67501daa4221542249013cdef82bae">QwtKnob::setBorderWidth</a></div><div class="ttdeci">void setBorderWidth(int)</div><div class="ttdoc">Set the knob's border width.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00790">qwt_knob.cpp:790</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_afd8b3af4e053e9973bf3ae39d5196c20"><div class="ttname"><a href="class_qwt_knob.html#afd8b3af4e053e9973bf3ae39d5196c20">QwtKnob::sizeHint</a></div><div class="ttdeci">virtual QSize sizeHint() const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00833">qwt_knob.cpp:833</a></div></div>
<div class="ttc" id="aclass_qwt_knob_html_afea44f23da7f79a2b790178850c26edd"><div class="ttname"><a href="class_qwt_knob.html#afea44f23da7f79a2b790178850c26edd">QwtKnob::setScaleDraw</a></div><div class="ttdeci">void setScaleDraw(QwtRoundScaleDraw *)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__knob_8cpp_source.html#l00259">qwt_knob.cpp:259</a></div></div>
<div class="ttc" id="aclass_qwt_painter_html_aad72e955692b37a06547a6c0d62817b0"><div class="ttname"><a href="class_qwt_painter.html#aad72e955692b37a06547a6c0d62817b0">QwtPainter::drawFocusRect</a></div><div class="ttdeci">static void drawFocusRect(QPainter *, const QWidget *)</div><div class="ttdoc">Draw a focus rectangle on a widget using its style.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter_8cpp_source.html#l00815">qwt_painter.cpp:815</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html"><div class="ttname"><a href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a></div><div class="ttdoc">A class for drawing round scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8h_source.html#l00031">qwt_round_scale_draw.h:32</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a20e3ae2b75f28c8d015ad21ad61f8b49"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a20e3ae2b75f28c8d015ad21ad61f8b49">QwtRoundScaleDraw::extent</a></div><div class="ttdeci">virtual double extent(const QFont &amp;) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00255">qwt_round_scale_draw.cpp:255</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a219e0db15594f297ae6ff769fd6c0485"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a219e0db15594f297ae6ff769fd6c0485">QwtRoundScaleDraw::setRadius</a></div><div class="ttdeci">void setRadius(double radius)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00066">qwt_round_scale_draw.cpp:66</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_a5d85678fdb9fbb4d622425aab9ecc681"><div class="ttname"><a href="class_qwt_round_scale_draw.html#a5d85678fdb9fbb4d622425aab9ecc681">QwtRoundScaleDraw::setAngleRange</a></div><div class="ttdeci">void setAngleRange(double angle1, double angle2)</div><div class="ttdoc">Adjust the baseline circle segment for round scales.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8cpp_source.html#l00118">qwt_round_scale_draw.cpp:118</a></div></div>
<div class="ttc" id="aclass_qwt_round_scale_draw_html_af7e08b85826c5e1e5b1762fa07830107"><div class="ttname"><a href="class_qwt_round_scale_draw.html#af7e08b85826c5e1e5b1762fa07830107">QwtRoundScaleDraw::moveCenter</a></div><div class="ttdeci">void moveCenter(double x, double y)</div><div class="ttdoc">Move the center of the scale draw, leaving the radius unchanged.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__round__scale__draw_8h_source.html#l00064">qwt_round_scale_draw.h:64</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a4d03a9fea3bd9b66a0b882b8b1a58f4b"><div class="ttname"><a href="class_qwt_scale_map.html#a4d03a9fea3bd9b66a0b882b8b1a58f4b">QwtScaleMap::p1</a></div><div class="ttdeci">double p1() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00099">qwt_scale_map.h:99</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a504f1627e0e02ddac03d2ce46507b865"><div class="ttname"><a href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">QwtScaleMap::transform</a></div><div class="ttdeci">double transform(double s) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00137">qwt_scale_map.h:137</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_ab1ee6d62addf3f9cf091d425be9ac642"><div class="ttname"><a href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">QwtScaleMap::invTransform</a></div><div class="ttdeci">double invTransform(double p) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00154">qwt_scale_map.h:154</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_acd78b70fae83854a148fa3d08b13c261"><div class="ttname"><a href="class_qwt_scale_map.html#acd78b70fae83854a148fa3d08b13c261">QwtScaleMap::p2</a></div><div class="ttdeci">double p2() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00107">qwt_scale_map.h:107</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_knob.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
